package iterator;

public class AggregateImpl implements Aggregate{

    private Object[] objects;

    public AggregateImpl(Object[] objects) {
        this.objects = objects;
    }

    @Override
    public Iterator getIterator() {
        return new IteratorImpl(this.objects);
    }
}
